<?php

namespace App\Transformers;

use App\Models\Type;
use League\Fractal\TransformerAbstract;

class TypeTransformer extends TransformerAbstract
{
    public function transform(Type $type)
    {
        return [
            'id' => $type->id,
            'name' => $type->name,
            'pid' =>$type->pid,
             'text' =>$type->text,
             'type_img' =>$type->type_img,
            'is_del'=>$type->is_del,
        ];
    }
}